package w2

import scala.collection.mutable.ListBuffer

object ListTest3 {
  def main(args: Array[String]): Unit = {
    val l = ListBuffer("dog")
    l += "pig"
    println(l)
    l ++= List("cock")
    //l = l :: ("sss")

    println(l)
    l -= "dog" //删除！！！
    println(l)
    ///l.remove(1)
  }
}
